using System.Collections;
using System.Collections.Generic;
using UnityEngine;

//所有UI面板的父类，包含UI面板的状态信息
public abstract class BasePanel
{
    //UI信息
    public UIType UIType{get; private set;}
    //UI管理工具
    public UITool UITool {get; private set; }
    //面板管理器
    public PanelManager PanelManager { get; private set; }
    public BasePanel(UIType uiType)
    {
        //初始化
        UIType = uiType;
    }
    //初始化UITool
    public void Initialize(UITool tool)
    {
        UITool = tool;
    }
    //初始化面板管理器
    public void Initialize(PanelManager panelManager)
    {
        PanelManager = panelManager;
    }
    //UI进入时执行操作，只执行一次
    public virtual void OnEnter(){}
	//UI暂停时执行操作，除设置面板之外无法点击
    public virtual void OnPause(){}
    //UI继续执行的操作
    public virtual void OnResume(){}
    //UI退出时执行的操作
    public virtual void OnExit(){}


}